<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:panelGrid xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:sijyp="http://java.sun.com/jsf/composite/sijyp" width="100%">

	<ui:remove>
		POSTULADO
	</ui:remove>
	<rich:dataTable id="dt_personas" keepSaved="true" rowKeyVar="index"
		var="record" value="#{personasManager.postuladoDm.dataModel}"
		rows="10" style="width: 100%;"
		noDataLabel="${msg['general.registrosNoEncontrados']}">
		<ui:remove>
			Postulado
		</ui:remove>
		<ui:include src="/resources/sijyp/dataModels/column.xhtml">
			<ui:param name="render_sort" value="dt_personas" />
			<ui:param name="key" value="id" />
			<ui:param name="header" value="Postulado" />
			<ui:param name="column" value="2" />
			<ui:param name="managedBean"
				value="#{personasManager.postuladoDm}" />
		</ui:include>
		<ui:remove>
			Radicado
		</ui:remove>
		<ui:include src="/resources/sijyp/dataModels/column.xhtml">
			<ui:param name="render_sort" value="dt_personas" />
			<ui:param name="key" value="radicado" />
			<ui:param name="header" value="Radicado" />
			<ui:param name="column" value="3" />
			<ui:param name="managedBean"
				value="#{personasManager.postuladoDm}" />
		</ui:include>
		<ui:remove>
			Tipo Documento
		</ui:remove>
		<ui:include src="/resources/sijyp/dataModels/column.xhtml">
			<ui:param name="render_sort" value="dt_personas" />
			<ui:param name="key" value="tipoDocumento" />
			<ui:param name="header" value="Tipo Documento" />
			<ui:param name="column" value="5" />
			<ui:param name="managedBean"
				value="#{personasManager.postuladoDm}" />
		</ui:include>
		<ui:remove>
			Numero Documento
		</ui:remove>
		<ui:include src="/resources/sijyp/dataModels/column.xhtml">
			<ui:param name="render_sort" value="dt_personas" />
			<ui:param name="key" value="numeroDocumento" />
			<ui:param name="header" value="Número Documento" />
			<ui:param name="column" value="6" />
			<ui:param name="managedBean"
				value="#{personasManager.postuladoDm}" />
		</ui:include>
		<ui:remove>
			Nombre
		</ui:remove>
		<ui:include src="/resources/sijyp/dataModels/column.xhtml">
			<ui:param name="render_sort" value="dt_personas" />
			<ui:param name="key" value="nombre" />
			<ui:param name="header" value="Nombre" />
			<ui:param name="column" value="8" />
			<ui:param name="managedBean"
				value="#{personasManager.postuladoDm}" />
		</ui:include>
		<ui:remove>
			Alias
		</ui:remove>
		<ui:include src="/resources/sijyp/dataModels/column.xhtml">
			<ui:param name="render_sort" value="dt_personas" />
			<ui:param name="key" value="alias" />
			<ui:param name="header" value="Alias" />
			<ui:param name="column" value="7" />
			<ui:param name="managedBean"
				value="#{personasManager.postuladoDm}" />
		</ui:include>

		<ui:remove>
			ACCIONES
		</ui:remove>
		<rich:column>
			<f:facet name="header">
				<h:outputLabel
					value="${msg['bienes.origen.deOficio.tabla.acciones']}" />
			</f:facet>
			<h:panelGrid columnClasses="icon_space">
				<h:commandLink value=""
					action="#{personasManager.onSeleccionPersona(record)}"
					onclick="#{rich:component(popupId)}.hide(event);">
					<h:graphicImage
						value="#{resource['images:icons/ico_green_arrow.png']}"
						title="Seleccionar Persona" />
					<f:ajax execute="@this" render=":sijypMessages #{renderProperties}" />
				</h:commandLink>
			</h:panelGrid>
		</rich:column>
		<f:facet name="footer">
			<rich:dataScroller   maxPages="10"
								fastStep="5"
								fastControls="hide" stepControls="show">
							</rich:dataScroller>
		</f:facet>
	</rich:dataTable>

</h:panelGrid>